/* Menggunakan font yang lembut dan ramah */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap');

body { 
    font-family: 'Quicksand', sans-serif; 
    background-color: #fff5f7; 
    background-image: radial-gradient(#fce4ec 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 20px; 
    color: #4a4a4a;
}

.container { 
    max-width: 600px; 
    background: white; 
    padding: 40px; 
    border-radius: 30px; 
    box-shadow: 0 10px 25px rgba(216, 27, 96, 0.1); 
    margin: auto; 
    border: 2px solid #fce4ec;
}

h2 { 
    color: #d81b60; 
    text-align: center; 
    font-weight: 700;
    margin-bottom: 5px;
}

/* Mempercantik label dan input agar tidak kaku */
label { 
    display: block; 
    margin-top: 18px; 
    font-weight: 600; 
    color: #6d4c41;
    font-size: 0.95rem;
}

input, textarea, select { 
    width: 100%; 
    padding: 12px; 
    margin-top: 8px; 
    border: 1.5px solid #f1f1f1; 
    border-radius: 12px; 
    box-sizing: border-box; 
    font-family: 'Quicksand', sans-serif;
    background-color: #fafafa;
    transition: 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #f48fb1;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(244, 143, 177, 0.2);
}

/* Tombol Utama (Warna Pink/Rose) */
button { 
    width: 100%; 
    padding: 16px; 
    background: linear-gradient(135deg, #ec407a 0%, #d81b60 100%); 
    color: white; 
    border: none; 
    border-radius: 50px; 
    margin-top: 25px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(216, 27, 96, 0.3);
    transition: all 0.3s;
}

button:hover { 
    background: linear-gradient(135deg, #d81b60 0%, #ad1457 100%);
    transform: translateY(-2px);
}

/* Tombol Kembali (Warna Lembut) */
.btn-back { 
    background: #fce4ec; 
    color: #d81b60; 
    margin-top: 12px; 
    box-shadow: none;
}

.btn-back:hover { 
    background: #f8bbd0; 
}

/* Hasil Analisa (Kesan Pastel) */
#result { 
    margin-top: 30px; 
    padding: 25px; 
    border-left: 8px solid #f48fb1; 
    background: #fff9fb; 
    border-radius: 15px;
    display: none; 
    white-space: pre-wrap; 
    color: #444;
    line-height: 1.6;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.loading { 
    display: none; 
    text-align: center; 
    color: #d81b60; 
    font-weight: 600;
    margin-top: 20px;
}

/* Custom Alert & Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(74, 20, 140, 0.4); /* Deep purple transparan */
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: white;
    padding: 30px;
    border-radius: 25px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.btn-close-modal {
    background: #4a4a4a;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: 700;
    width: auto;
}

@media (max-width: 480px) {
    .container { padding: 25px 20px; }
}

/* Styling untuk grup checkbox */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    background-color: #fafafa;
    border: 1.5px solid #f1f1f1;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: #555;
}

.checkbox-label:has(input:checked) {
    background-color: #fce4ec;
    border-color: #f48fb1;
    color: #d81b60;
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}